import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listWarning(query) {
  return request({
    url: '/aqsc/warning/list',
    method: 'get',
    params: query
  })
}

// 查询用户详细
export function getWarning(warningId) {
  return request({
    url: '/aqsc/warning/' + parseStrEmpty(warningId),
    method: 'get'
  })
}

// 新增用户
export function addWarning(data) {
  return request({
    url: '/aqsc/warning',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateWarning(data) {
  return request({
    url: '/aqsc/warning',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delWarning(warningId) {
  return request({
    url: '/aqsc/warning/' + warningId,
    method: 'delete'
  })
}
